package com.lx.regex;

import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.Set;

public class jdk8_zonid {
    public static void main(String[] args) {
        zone();

    }

    private static void zone() {
        Set<String> zoneid = ZoneId.getAvailableZoneIds();
        System.out.println(zoneid);

        ZoneId zoneId = ZoneId.systemDefault();
        System.out.println(zoneId);

        ZoneId id = ZoneId.of("Africa/Nairobi");
        System.out.println(id);
    }
}
